package com.lightkits.wms.database.dao;

import com.lightkits.framework.database.dao.SuperMapper;
import com.lightkits.wms.database.model.BdComTagModel;
import com.lightkits.wms.database.model.BdTagMesModel;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author lanmi.xin@gmail.com
 * Created on 2019-05-20
 */
@Mapper
public interface WmsBdTagMapper {

    List<BdTagMesModel> getTagMesByParams(@Param("tagCode") String tagCode,
                                          @Param("organizationId")Long organizationId,
                                          @Param("languageCode") String languageCode);

    List<BdTagMesModel> getComTagMesByParams(@Param("tagCode") String tagCode,
                                             @Param("orgId") String orgId,
                                             @Param("languageCode") String languageCode);

    List<BdComTagModel> getTagListBySale(@Param("saleTicketId") String saleTicketId,
                                         @Param("orgId") String orgId,
                                         @Param("tagCode") String tagCode,
                                         @Param("languageCode") String languageCode);

    BdComTagModel getTagBySale(
            @Param("orgId") String orgId,
            @Param("tagCode") String tagCode,
            @Param("languageCode") String languageCode);
}